package com.cans.factory.abstractfactory;

/**
 * 小米手机 - 抽象工厂实现
 *
 * @author cans
 * @date 2024/2/17
 **/
public class MiPhoneFactoryImpl implements Factory {
    @Override
    public MiPhone createPhone() {
        return new MiPhone(createCpu());
    }

    @Override
    public Cpu createCpu() {
        return new SurgingCpu();
    }
}
